home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / SourceCode / MiniExamples / ConvertXYtoChar / ConvertXY.app / ConvertXY.nib (.txt) < prev   
NeXT TypedStream Data  |  1991-09-04  |  6KB  |  125 lines

  1. typedstream
  2. StreamTable
  3.     HashTable
  4. Object
  5. [20c]
  6. typedstream
  7. [700c]
  8. typedstream
  9.     HashTable
  10. Object
  11. Controller
  12. HeaderClass
  13. %%%%i@@
  14. genericobject_nib
  15. myScrollView
  16. charPosition
  17. charCoordinate
  18. convert:
  19.     TurboText
  20.     scrollnib
  21. FirstResponder
  22. firstnib
  23. checkSpelling:
  24. alignSelCenter:
  25.     unscript:
  26. pasteFont:
  27. runPageLayout:
  28. superscript:
  29. copyRuler:
  30.     copyFont:
  31. selectAll:
  32. pasteRuler:
  33. toggleRuler:
  34. showGuessPanel:
  35. alignSelLeft:
  36. paste:
  37. performClose:
  38. arrangeInFront:
  39. subscript:
  40. copy:
  41. alignSelRight:
  42. delete:
  43. orderFrontColorPanel:
  44. underline:
  45. performMiniaturize:
  46. [5175c]
  47. typedstream
  48.     HashTable
  49. Object
  50. NibData
  51. @@@@s
  52. Storage
  53. {*@@}
  54.     [21{*@@}]
  55. File's Owner
  56. CustomObject
  57. Application
  58. MainMenu
  59. MenuTemplate
  60. *@*@ccc
  61.     ConvertXY
  62. Matrix
  63. Control
  64.     Responder
  65. @:@iiii
  66. MenuCell
  67. ButtonCell
  68. ActionCell
  69.     Helvetica
  70. Paste
  71. Select All
  72. ff@@#::s
  73. submenuAction:
  74. Bitmap
  75.     menuArrow
  76. MyWindow
  77. WindowTemplate
  78. iiii***@s@
  79. Coordinate Conversion Example
  80. Window
  81. ScrollView
  82. ClipView
  83. ciifffcfffs
  84. [2369c]{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
  85. \margl40
  86. \margr40
  87. {\colortbl\red0\green0\blue0;}
  88. \pard\tx620\tx1240\tx1860\tx2480\tx3100\tx3720\tx4340\tx4980\tx5600\tx6220\f0\b\i0\ul0\qc\fs28\fc0 A True Story of Whale Removal\
  89. \b0\ql \
  90. I am absolutely not making this incident up; in fact I have it all on videotape, which I obtained from the alert father-son team of Dean and Kurt Smith.  The tape is from a local TV news show in Oregon, which sent a reporter out to cover the removal of a 45-foot, eight-ton dead whale that washed up on the beach.  The responsibility for getting rid of the carcass was placed upon the Oregon State Highway Division, apparently on the theory that highways and whales are very similar in the sense of being large objects.\
  91. So anyway, the highway engineers hit upon the plan -- remember, I am not making this up -- of blowing up the whale with dynamite.  The thinking here was that the whale would be blown into small pieces, which would be eaten by sea gulls, and that would be that.  A textbook whale removal.\
  92. So they moved the spectators back up the beach, put a half-ton of dynamite next to the whale and set it off.  I am probably not guilty of understatement when I say that what follows, on the videotape, is the most wonderful event in the history of the universe.  First you see the whale carcass disappear in a huge blast of smoke and flame.  Then you hear the happy spectators shouting "Yayy!" and "Whee!"  Then, suddenly, the crowd's tone changes.  You hear a new sound like "splud."  You hear a woman's voice shouting "Here come pieces of...  MY GOD!"  Something smears the camera lens.\
  93. Later, the reporter explains:  "The humor of the entire situation suddenly gave way to a run for survival as huge chunks of whale blubber fell everywhere."  One piece caved in the roof of a car parked more than a quarter of a mile away.  Remaining on the beach were several rotting whale sectors the size of condominium units.  There was no sign of the sea gulls, who had no doubt permanently relocated in Brazil.  This is a very sobering videotape.  Here at the institute we watch it often, especially at parties.  But this is no time for gaiety.  This is a time to get hold of the folks at the Oregon State Highway division and ask them, when they get done cleaning up the beaches, to give us an estimate on the US Capitol.\
  94. NXCursor
  95. NXImage
  96. NXibeam
  97. Scroller
  98. _doScroller:
  99. @@@ffs
  100. Button
  101. Converts To
  102.     TextField
  103. TextFieldCell
  104. FEnter X,Y coordinates below and select the "Converts To" button.  The resulting character position will appear on the right and the cursor will move to that position in the ScrollView above.  The X,Y coordinates will be adjusted to that exact location also.
  105.     A character position of -1 indicates an invalid coordinate pair.
  106. FormCell
  107. Field:
  108. ScrollingText
  109. Field2
  110. Form2
  111. ControllerInstance
  112. Controller
  113. {i*@@@}
  114. [11{i*@@@}]
  115. hide:
  116. terminate:
  117. convert:
  118. myScrollView
  119. delegate
  120. copy:
  121. paste:
  122. selectAll:
  123. charCoordinate
  124. charPosition
  125.